home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Sep 89 / Y0015-RE. Linking C and M-Sep89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  2.6 KB  |  86 lines  |  [TEXT/GEOL]

  1. Item    8727289                         6-Sept-89        05:51
  2.  
  3. From:   D2769                           Comusearch, James Benson,PRT
  4.  
  5. To:     D0481                           Data Translation, Robert White,PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    RE. Linking C and MacApp 2.0b9
  10.  
  11. Item    9102804                         5-Sept-89        13:26
  12.  
  13. From:   D0481                           Data Translation, Robert White,PRT
  14.  
  15. To:     MACDTS                          Mac Developer Tech Support, APL
  16.  
  17. cc:     MACAPP.TECH$                    MACAPP Tech
  18.  
  19. Sub:    MacApp 2.0b9 Linking C Libs
  20.  
  21. From    : Marshall Houskeeper
  22.           Data Translation
  23.         
  24. Subject : MacApp 2.0b9 Linking with C Libraries        
  25.  
  26.  
  27. My application is a composite of Pascal and C routines.  Now under MacApp 2.0b9
  28. I am having problems linking in the C libraries. Under MacApp 2.0b5 the
  29. NeededSysLibs in the make was:
  30.  
  31. NeededSysLibs = ∂
  32.             "{CLibraries}CLib881.o" ∂
  33.             "{CLibraries}CInterface.o" ∂
  34.             "{CLibraries}StdClib.o" ∂
  35.             "{CLibraries}CRuntime.o" ∂
  36.             "{Libraries}Interface.o" ∂
  37.             "{PLibraries}PasLib.o"    ∂
  38.             "{PLibraries}SANELib881.o"
  39.             
  40. With MacApp 2.0b5 I had no problems linking, and all worked fine.  With the new
  41.  
  42. structure of the make file for MacApp 2.0b9, I removed the NeededSysLibs and
  43. added the C libraries to  the OtherLinkFiles list.  This was done under the
  44. direction of the documentation.
  45.  
  46. OtherLinkFiles =     ∂
  47.                     "{CLibraries}CLib881.o" ∂
  48.                     "{CLibraries}CInterface.o" ∂
  49.                     "{CLibraries}StdClib.o" ∂
  50.                     "{CLibraries}CRuntime.o" ∂
  51.                     "{ObjApp}TIFF2.C.o" ∂
  52.                     "{ObjApp}color functions2.c.o" ∂
  53.                     "{ObjApp}C_Mapping.c.o" ∂
  54.                     "{ObjApp}DT2270 Board.c.o" ∂
  55.                     "{ObjApp}UTemp_file.p.o" ∂
  56.                       "{ObjApp}GlobalConst.p.o" ∂
  57.                     .
  58.                     .
  59.                     .
  60.  
  61. Now when I link the application I get link warnings such as:
  62.  
  63. ### While reading file "HD:MPW:Libraries:CLibraries:StdClib.o"
  64. ### Link: Warning: Duplicate symbol definition, ignored. (Error 21) _doscan
  65. #   defined in file: "HD:MPW:Libraries:CLibraries:CLib881.o"
  66. ### Link: Warning: Duplicate symbol definition, ignored. (Error 21) _doprnt
  67. #   defined in file: "HD:MPW:Libraries:CLibraries:CLib881.o"
  68. ### Link: Warning: Duplicate symbol definition, ignored. (Error 21) atof
  69. #   defined in file: "HD:MPW:Libraries:CLibraries:CLib881.o"
  70. .
  71. .
  72. .
  73. ### Link: Warning: Code segment too big. Limit =  (Error 35) 32760
  74.  
  75. The Segment "Main" size=$834C (33612) is greater then max segment size. It
  76. appears
  77. that many of the C and MacApp and toolbox functions are being placed in the
  78. MAIN
  79. segment.
  80.  
  81. I would appreciate any help you could give me.
  82.  
  83.  
  84.  
  85.  
  86.